package EventBus.multipleeventtypes;

import com.google.common.eventbus.EventBus;

import entity.Users;

/**
 * Created by wuzhao on 2017/3/8 0008.
 */
public class MultipleEventTypeBusExample {
    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        eventBus.register(new MultipleListeners());
//        eventBus.post("Multiple Listeners Example");
//        eventBus.post(1);
        Users users = new Users();
        users.setUserName("用户名");
        eventBus.post(users);
    }
}
